import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { FormsModule } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { StartComponent } from './home/start/start.component'; //花名册首页
import { LocationStrategy, HashLocationStrategy} from '@angular/common';

// service
import { UtilService } from './my-service/util.service';
import {TrainingService} from "./my-service/training.service";
//公共组件
import { NavComponent } from './nav/nav.component';
import { breadcrumbComponent } from './my-public/breadcrumb/breadcrumb.component';
// UI
import { NgZorroAntdModule} from 'ng-zorro-antd';

//管道
import {ToDatePipe} from "./my-pipe/to-date.pipe";
//组件
import {AddTestComponent} from "./home/add-test/add-test.component"; //添加测试
import {TrainingMinuteComponent} from "./home/training-minute/training-minute.component"; //每个班级的详细测试
import {RosterTrainingComponent} from "./home/roster-training/roster-training.component";  //每个班级测试结果主页
import {RosterTrainingResultComponent} from "./home/roster-training/roster-training-result/roster-training-result.component";//测试结果
import {TrainingExplainComponent} from "./home/roster-training/training-explain/training-explain.component"; //测试说明
import {QRCodeComponent} from "./home/roster-training/QR-code/QR-code.component"; // 扫码加入
//生成二维码工具
import {QRCodeModule} from "angular2-qrcode"; //生成二维码组件

@NgModule({
  declarations: [
    AppComponent,
    NavComponent,
    HomeComponent,
    StartComponent,
    breadcrumbComponent,
    AddTestComponent,
    TrainingMinuteComponent,
    RosterTrainingComponent,
    RosterTrainingResultComponent,
    TrainingExplainComponent,
    QRCodeComponent,
    // 管道
    ToDatePipe


  ],
  imports: [
    AppRoutingModule,
    HttpClientModule,
    BrowserModule,
    FormsModule,
    BrowserAnimationsModule,
    NgZorroAntdModule,
    HttpModule,
    QRCodeModule
  ],
  providers: [
    UtilService,
    TrainingService
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
